﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCCategory.ascx.cs" Inherits="WebAppArtreve.views.shared.components.categories.WUCCategory" %>
<%@ Register src="../arts/WUCArtsByCategory.ascx" tagname="WUCArtsByCategory" tagprefix="uc1" %>
<%@ Register src="WUCCategoryImage.ascx" tagname="WUCCategoryImage" tagprefix="uc2" %>
<asp:ListView ID="ListViewCategories" runat="server" 
DataSourceID="ODSCategoriesByID">
    <LayoutTemplate>
        <article id="itemPlaceholder" runat="server" />
    </LayoutTemplate>
    <ItemTemplate>
        <article class="artView">            
            <header>
                <h3 class="categoryName"><%# Eval("Name") %></h3>
                <br />
            </header> 
            <section class="art-image">
                    <uc2:WUCCategoryImage ID="WUCCategoryImage1" runat="server" />
            </section>
            <section class="art-description">
                <p class="spanCategoryName">Description:</p>
                <p><%# Eval("Description")%></p>                
            </section>   
        </article>
    </ItemTemplate>
</asp:ListView>
<!-- HIER NOG CATEGORY INVOEGEN-->
<hr />
<uc1:WUCArtsByCategory ID="WUCArtsByCategory1" runat="server" />
<asp:ObjectDataSource ID="ODSCategoriesByID" 
    runat="server" 
    TypeName="CLibArtreve.bll.CategoryBLL"  
    SelectMethod="GetCategoryById"
    OnObjectCreating="ODSCategoriesByID_OnObjectCreating">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="-1" Name="id" QueryStringField="Id" 
            Type="Int64" />
    </SelectParameters>
</asp:ObjectDataSource>